{% load map_icons %}
<div id="location-info-container">
{% for item in items %}
    {% if forloop.first %}
    <div class="location-address">
        <strong>{{ item.permissions.0.town }}</strong><br/>
        <small>{{ item.permissions.0.address }}</small>
    </div>
    <div class="location-items">
    {% endif %}
        <div class="location-item">
            <img src="{{ item.permissions.0|get_icon }}" class="location-network-icon pull-left" />

            <strong>{{ item.network.name }}</strong>
            {% if item.permissions.0.station_id %}
                <small>ID: <abbr title="Identyfikator wewnętrzny operatora">{{ item.permissions.0.station_id }}</abbr></small>
            {% endif %}<br/>

            <small>
            {% for support in item.supported %}
                {{ support.standard }}{{ support.band }}
            {% endfor %}
            <a class="location-info" href="{% url 'bts:uke-extended-info-view' location.id item.network.code %}" title="Szczegółowe informacje o pozwoleniach">Szczegóły...</a>
            </small>
        </div>
    {% if forloop.last %}
    </div>
    {% endif %}
{% endfor %}

    <div class="location-info-footer">
        <small>GPS: {{ location.latitude }},{{ location.longitude }}</small>
    </div>
</div>
